home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Auge 4000
/
Auge 4000 #64 (1992-08-13)(Amiga User Gruppe Einzugsgebiet 4000).zip
/
Auge 4000 #64 (1992-08-13)(Amiga User Gruppe Einzugsgebiet 4000).adf
/
TKEd
/
rexx
/
MakeNumber.tked
< prev
next >
Wrap
Text File
|
1992-06-12
|
599b
|
36 lines
/* ARexx program number all the lines of a text */
options results
address 'TKEd.1' /* Name of TKEd's port */
SIGNAL ON BREAK_C
LastLine /* Get number of the last line in a text */
x=result
BeginOfFile /* Go to the top of the text */
GetLineNr /* Get linenumber */
y=result
do while y < x
BeginOfLine
WriteString y /* Write number */
WriteString ": " /* Write ': ' */
Cursor "DOWN"
GetLineNr /* Get linenumber */
y=result
end
BeginOfLine
WriteString y /* Write number */
WriteString ": " /* Write ': ' */
BREAK_C: